<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class helper_Public</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> helper_Public</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Enter description here.</p>
<p class="description"><p>Enter description here...</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> eason007&lt;<a href="mailto:eason007@163.com">eason007@163.com</a>&gt;</li>
				<li><span class="field">copyright:</span> Copyright (c) 2007-2010 eason007&lt;eason007@163.com&gt;</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_library---helper---Public.php.html">/library/helper/Public.php</a> (line <span class="field"><a href="../__filesource/fsource_Helper__libraryhelperPublic.php.html#a13">13</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>




	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
												<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#formatQuery" title="details" class="method-name">formatQuery</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$char</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">&quot;delete&quot;</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">string</span>
										<a href="#formatString" title="details" class="method-name">formatString</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">&quot;ENCODE&quot;</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">str</span>
										<a href="#formatTitleUTF_8" title="details" class="method-name">formatTitleUTF_8</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$title</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$length</span> = <span class="var-default">50</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$isApp</span> = <span class="var-default">true</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">int</span>
										<a href="#getStr2Mktime" title="details" class="method-name">getStr2Mktime</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$strTime</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#pageNav" title="details" class="method-name">pageNav</a>
											([<span class="var-type"></span>&nbsp;<span class="var-name">$iRecordTotal</span> = <span class="var-default">0</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$iPageTotal</span> = <span class="var-default">1</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$iPageLength</span> = <span class="var-default">4</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$iNowPage</span> = <span class="var-default">1</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$sUrl</span> = <span class="var-default">&quot;&quot;</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#postData" title="details" class="method-name">postData</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$data</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
													<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodformatQuery" id="formatQuery"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">formatQuery</span> (line <span class="line-number"><a href="../__filesource/fsource_Helper__libraryhelperPublic.php.html#a165">165</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">将GET参数字符串化</p>
<p class="description"><p>将GET参数字符串化
 对上页传入的GET参数，或保留指定的参数组，或删除指定的参数，返回标准的GET字符串</p></p>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			formatQuery
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$char</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">&quot;delete&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$char</span><span class="var-description">: GET参数名称</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span><span class="var-description">: 操作方式：delete为删除指定参数；hold为保留指定参数</span>			</li>
				</ul>
		
			
	</div>
<a name="methodformatString" id="formatString"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">formatString</span> (line <span class="line-number"><a href="../__filesource/fsource_Helper__libraryhelperPublic.php.html#a99">99</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">格式化字符串参数</p>
<p class="description"><p>格式化字符串参数
 将字符串进行关键词过滤或逆转换，包括： ENCODE/TEXT/TEXTAREA 	转换为入库格式 DECODE 	转换为出库格式 GET/POST
 POSTAGAIN</p></p>
	
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			formatString
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$string</span>, [<span class="var-type">string</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">&quot;ENCODE&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$string</span><span class="var-description">: 待过滤的字符串</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$type</span><span class="var-description">: 过滤方式</span>			</li>
				</ul>
		
			
	</div>
<a name="methodformatTitleUTF_8" id="formatTitleUTF_8"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">formatTitleUTF_8</span> (line <span class="line-number"><a href="../__filesource/fsource_Helper__libraryhelperPublic.php.html#a201">201</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">将字符串截取指定长度</p>
<p class="description"><p>将字符串截取指定长度
 该函数适用于UTF-8格式，默认截取前50个字符，及默认追加省略符号</p></p>
	
	<div class="method-signature">
		<span class="method-result">str</span>
		<span class="method-name">
			formatTitleUTF_8
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$title</span>, [<span class="var-type">int</span>&nbsp;<span class="var-name">$length</span> = <span class="var-default">50</span>], [<span class="var-type">bool</span>&nbsp;<span class="var-name">$isApp</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$title</span><span class="var-description">: 待处理字符串</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$length</span><span class="var-description">: 截取的字符长度</span>			</li>
					<li>
				<span class="var-type">bool</span>
				<span class="var-name">$isApp</span><span class="var-description">: 是否在末尾追加省略符号</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetStr2Mktime" id="getStr2Mktime"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getStr2Mktime</span> (line <span class="line-number"><a href="../__filesource/fsource_Helper__libraryhelperPublic.php.html#a29">29</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">字符串转换为Unix时间戳</p>
<p class="description"><p>字符串转换为Unix时间戳
 接受多种时间格式，如： 2006-01-01T13:20:20Z 2006-01-01T13:20:20+8000 2006-01-01 13:20 2006-01-01 13:20:20 Fri, 06 Jan 2006 10:56:21 +0800 2006年12月31日 13:30 2006-01-01</p></p>
	
	<div class="method-signature">
		<span class="method-result">int</span>
		<span class="method-name">
			getStr2Mktime
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$strTime</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$strTime</span>			</li>
				</ul>
		
			
	</div>
<a name="methodpageNav" id="pageNav"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">pageNav</span> (line <span class="line-number"><a href="../__filesource/fsource_Helper__libraryhelperPublic.php.html#a234">234</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			pageNav
		</span>
					([<span class="var-type"></span>&nbsp;<span class="var-name">$iRecordTotal</span> = <span class="var-default">0</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$iPageTotal</span> = <span class="var-default">1</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$iPageLength</span> = <span class="var-default">4</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$iNowPage</span> = <span class="var-default">1</span>], [<span class="var-type"></span>&nbsp;<span class="var-name">$sUrl</span> = <span class="var-default">&quot;&quot;</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$iRecordTotal</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$iPageTotal</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$iPageLength</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$iNowPage</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$sUrl</span>			</li>
				</ul>
		
			
	</div>
<a name="methodpostData" id="postData"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">postData</span> (line <span class="line-number"><a href="../__filesource/fsource_Helper__libraryhelperPublic.php.html#a286">286</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			postData
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$url</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$url</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$data</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	
	<p class="notes" id="credit">
		Documentation generated on Tue, 02 Mar 2010 07:47:16 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>